import request from '@/utils/request'

// 查询IQC检验单列表
export function listInspection(query) {
  return request({
    url: '/mes/qc/iqcinspection/list',
    method: 'get',
    params: query
  })
}

// 查询IQC检验单详细
export function getInspection(iqcId) {
  return request({
    url: '/mes/qc/iqcinspection/' + iqcId,
    method: 'get'
  })
}

// 新增IQC检验单
export function IQCDataBack(data) {
  return request({
    url: '/mes/k3cloud/api/receiptGood/backIQCInspectionData',
    method: 'post',
    data: data
  })
}



// 新增IQC检验单
export function addInspection(data) {
  return request({
    url: '/mes/qc/iqcinspection',
    method: 'post',
    data: data
  })
}


// 修改IQC检验单
export function updateInspection(data) {
  return request({
    url: '/mes/qc/iqcinspection',
    method: 'put',
    data: data
  })
}

// 删除IQC检验单
export function delInspection(iqcId) {
  return request({
    url: '/mes/qc/iqcinspection/' + iqcId,
    method: 'delete'
  })
}
